//---------------------------------------------------------------------------

#ifndef FormMotionControlInterfaceH
#define FormMotionControlInterfaceH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "YbCommDevice.h"
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TFormMotionControl : public TForm
{
__published:	// IDE-managed Components
	TMainMenu *MainMenu1;
	TMenuItem *CommUB_Setting;
	TMenuItem *CommSetting;
	TMenuItem *CommRL_Setting;
	TMenuItem *CommLL_Setting;
	TMenuItem *CommUB_Open;
	TMenuItem *CommRL_Open;
	TMenuItem *CommLL_Open;
	TMenuItem *CommUB_Close;
	TMenuItem *CommRL_Close;
	TMenuItem *CommLL_Close;
	TStatusBar *StatusBarMain;
	TMenuItem *Comm_Open;
	TMenuItem *Comm_Close;
	TPageControl *PageControl_Main;
	TTabSheet *TabSheet_PortSetting;
	TRadioGroup *RadioGroup_CompSettings;
	TRadioGroup *RadioGroup_HMISettings;
	TButton *Button_CompSettingDialog;
	TButton *Button_HMISettingDialog;
	TButton *Button_CompPortSwitch;
	TButton *Button_HMIPortSwitch;
	TGroupBox *GroupBox_CB;
	TButton *Button_BoardSettingDialog;
	TButton *Button_BoardPortSwitch;
	TButton *Button_MainSettingEnabled;
	TButton *Button_ShowInfo;
	TGroupBox *GroupBox_MainProcess;
	TButton *Button_MainProcessTimerSwitch;
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall Comm_SettingClick(TObject *Sender);
	void __fastcall Comm_Enable(TObject *Sender);
	void __fastcall Memo_ShowInfoDblClick(TObject *Sender);
	void __fastcall FormDestroy(TObject *Sender);
	void __fastcall Button_PortSettingDialogClick(TObject *Sender);
	void __fastcall Button_PortSwitchClick(TObject *Sender);
	void __fastcall Button_MainSettingEnabledClick(TObject *Sender);
	void __fastcall Button_ShowInfoClick(TObject *Sender);
	void __fastcall RadioGroup_CompSettingsClick(TObject *Sender);
	void __fastcall RadioGroup_HMISettingsClick(TObject *Sender);
	void __fastcall Button_MainProcessTimerSwitchClick(TObject *Sender);
	void __fastcall Button1Click(TObject *Sender);



private:	// User declarations
public:		// User declarations
	__fastcall TFormMotionControl(TComponent* Owner);
	void CheckPortStatus(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMotionControl *FormMotionControl;
//---------------------------------------------------------------------------
#endif
